﻿using UnityEngine;
using System.Collections;

public class PlayerIcon : MonoBehaviour {

    public Transform playerIcon;

	// Use this for initialization
	void Start () {

        playerIcon = MinimapBg._instance.GetPlayerIcon();
	}
	
	// Update is called once per frame
	void Update () {

        float y = transform.eulerAngles.y;
        // 局部欧拉角旋转
        playerIcon.localEulerAngles = new Vector3(0,0,-y);
	}
}
